#pragma once
#include <iostream>
#include <time.h>
#include <stack>
#include <string.h>
using namespace std;

void InsertSort(int* arr, int n);
void ShellSort(int* arr, int n);
void SelectSort(int* arr, int n);
void CountSort(int* arr, int n);

void HeapSort(int* arr, int n);

void QuickSort(int* arr, int left, int right);
void QuickSortNonR(int* arr, int left, int right);

void msort(int* arr, int n);
void msortNonR(int* arr, int n);